package com.weishuang.monitor.leader.commons.utils;

import org.apache.commons.lang3.StringUtils;

public class OtherUtils {

    /**
     * 填充0
     * @param tree
     * @return
     */
    public static String supplementTrees(String tree){
        String item = "0000000000";
        if(StringUtils.isBlank(item)){
            return item;
        }
        //长度共10
        int i = 10;
        String supplement = item + tree;
        if(tree.length() < 11){
            return supplement.substring(supplement.length()-10,supplement.length());
        }else{
            return tree.substring(tree.length()-10,tree.length());
        }
    }
}
